import Vue from 'vue'
import VueRouter from 'vue-router'
import {routers, mainRouter} from './router';

Vue.use(VueRouter);

// 路由配置
const RouterConfig = {
    // mode: 'history',
    routes: routers
};

export const router = new VueRouter(RouterConfig);

router.beforeEach((to, from, next) => {
	next();
});

router.afterEach((to) => {
	
});